﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Action.aspx.cs" Inherits="ShareMarking.Web.admin.EnterPrise.QrcodeType.Action" %>
<%@ Import namespace="ShareMarking.Systems.Service" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript" src="/scripts/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="/scripts/jquery/Validform_v5.3.2_min.js"></script>
<script type="text/javascript" src="/scripts/lhgdialog/lhgdialog.js?skin=idialog"></script>
<script type="text/javascript" src="/scripts/datepicker/WdatePicker.js"></script>
<script type="text/javascript" src="/scripts/swfupload/swfupload.js"></script>
<script type="text/javascript" src="/scripts/swfupload/swfupload.queue.js"></script>
<script type="text/javascript" src="/scripts/swfupload/swfupload.handlers.js"></script>
<script type="text/javascript" charset="utf-8" src="/editor/kindeditor-min.js"></script>
<script type="text/javascript" charset="utf-8" src="/editor/lang/zh_CN.js"></script>
<script type="text/javascript" src="/admin/js/layout.js"></script>
<link href="/admin/skin/default/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
    $(function () {
        //初始化表单验证
        $("#form1").initValidform();
        //初始化编辑器
        var editor = KindEditor.create('.editor', {
            width: '98%',
            height: '350px',
            resizeType: 1,
            uploadJson: '/tools/upload_ajax.ashx?action=EditorFile&IsWater=1',
            fileManagerJson: '/tools/upload_ajax.ashx?action=ManagerFile',
            allowFileManager: true
        });
        var editorMini = KindEditor.create('.editor-mini', {
            width: '98%',
            height: '250px',
            resizeType: 1,
            uploadJson: '/tools/upload_ajax.ashx?action=EditorFile&IsWater=1',
            items: [
				'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
				'insertunorderedlist', '|', 'emoticons', 'image', 'link']
        });
        //初始化上传控件
        $(".upload-img").each(function () {
            $(this).InitSWFUpload({ sendurl: "/tools/upload_ajax.ashx", flashurl: "/scripts/swfupload/swfupload.swf" });
        });
        $(".upload-album").each(function () {
            $(this).InitSWFUpload({ btntext: "批量上传", btnwidth: 66, single: false, water: true, thumbnail: true, filesize: "2048", sendurl: "/tools/upload_ajax.ashx", flashurl: "/scripts/swfupload/swfupload.swf", filetypes: "*.jpg;*.jpge;*.png;*.gif;" });
        });
        $(".attach-btn").click(function () {
            showAttachDialog();
        });
        //设置封面图片的样式
        $(".photo-list ul li .img-box img").each(function () {
            if ($(this).attr("src") == $("#hidFocusPhoto").val()) {
                $(this).parent().addClass("selected");
            }
        });
    });
    //创建附件窗口
    function showAttachDialog(obj) {
        var objNum = arguments.length;
        var attachDialog = $.dialog({
            id: 'attachDialogId',
            lock: true,
            max: false,
            min: false,
            title: "上传附件",
            content: 'url:/admin/dialog/dialog_attach.aspx',
            width: 500,
            height: 180
        });
        //如果是修改状态，将对象传进去
        if (objNum == 1) {
            attachDialog.data = obj;
        }
    }
    //删除附件节点
    function delAttachNode(obj) {
        $(obj).parent().remove();
    }
</script>
</head>

<body class="mainbody">
<form id="form1" runat="server">
<!--导航栏-->
<div class="location">
  <a href="Index.aspx" class="back"><i></i><span>返回列表页</span></a>
  <a href="/admin/center.aspx" class="home"><i></i><span>首页</span></a>
  <i class="arrow"></i>
  <span>管理</span>
  <i class="arrow"></i>
  <span></span>
</div>
<div class="line10"></div>
<!--/导航栏-->

<!--内容-->
<div class="content-tab-wrap">
  <div id="floatHead" class="content-tab">
    <div class="content-tab-ul-wrap">
      <ul>
        <li><a href="javascript:;" onclick="tabs(this);" class="selected">基本资料</a></li>
      </ul>
    </div>
  </div>
</div>

<div class="tab-content">
  <dl>
    <dt>类型</dt>
    <dd>
        <asp:TextBox ID="txt_QT_Name" runat="server" CssClass="input normal" errormsg="" sucmsg=" "  ></asp:TextBox> 
      <span class="Validform_checktip">请输入类型</span>
    </dd>
  </dl>
  <dl>
    <dt>描述</dt>
    <dd>
        <asp:TextBox ID="txt_QT_Desc" runat="server" CssClass="input normal" errormsg="" sucmsg=" "  ></asp:TextBox> 
      <span class="Validform_checktip">请输入描述</span>
    </dd>
  </dl>
  <dl>
    <dt>总数</dt>
    <dd>
        <asp:TextBox ID="txt_QT_Count" runat="server" CssClass="input normal" errormsg="" sucmsg=" "  ></asp:TextBox> 
      <span class="Validform_checktip">请输入总数</span>
    </dd>
  </dl>
  <dl>
    <dt>开始数字</dt>
    <dd>
        <asp:TextBox ID="txt_QT_StartIndex" runat="server" CssClass="input normal" errormsg="" sucmsg=" "  ></asp:TextBox> 
      <span class="Validform_checktip">请输入开始数字</span>
    </dd>
  </dl>
  <dl>
    <dt>结束数字</dt>
    <dd>
        <asp:TextBox ID="txt_QT_EndIndex" runat="server" CssClass="input normal" errormsg="" sucmsg=" "  ></asp:TextBox> 
      <span class="Validform_checktip">请输入结束数字</span>
    </dd>
  </dl>
  <dl>
    <dt>使用个数</dt>
    <dd>
        <asp:TextBox ID="txt_QT_Used" runat="server" CssClass="input normal" errormsg="" sucmsg=" "  ></asp:TextBox> 
      <span class="Validform_checktip">请输入使用个数</span>
    </dd>
  </dl>
  <dl>
    <dt>剩余个数</dt>
    <dd>
        <asp:TextBox ID="txt_QT_Surplus" runat="server" CssClass="input normal" errormsg="" sucmsg=" "  ></asp:TextBox> 
      <span class="Validform_checktip">请输入剩余个数</span>
    </dd>
  </dl>
  <dl>
    <dt>模板</dt>
    <dd>
        <asp:TextBox ID="txt_QT_Template" runat="server" CssClass="input normal" errormsg="" sucmsg=" "  ></asp:TextBox> 
      <span class="Validform_checktip">请输入模板</span>
    </dd>
  </dl>
  <dl>
    <dt>用户</dt>
    <dd>
        <asp:TextBox ID="txt_QT_UserName" runat="server" CssClass="input normal" errormsg="" sucmsg=" "  ></asp:TextBox> 
      <span class="Validform_checktip">请输入用户</span>
    </dd>
  </dl>
  <dl>
    <dt>秘钥</dt>
    <dd>
        <asp:TextBox ID="txt_QT_SecretKey" runat="server" CssClass="input normal" errormsg="" sucmsg=" "  ></asp:TextBox> 
      <span class="Validform_checktip">请输入秘钥</span>
    </dd>
  </dl>
</div>
<!--/内容-->

<!--工具栏-->
<div class="page-footer">
  <div class="btn-list">
    <asp:Button ID="btnSubmit" runat="server" Text="提交保存" CssClass="btn" onclick="btnSubmit_Click" />
    <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript:history.back(-1);" />
  </div>
  <div class="clear"></div>
</div>
<!--/工具栏-->

</form>
</body>
</html>

